﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Task.DownloadImage.Models
{
    public class NetImageSource:ObservableObject
    {
        public int Width { get; set; }

        public int Height { get; set; }

        public string url { get; set; } = string.Empty;

        public string URL
        {
            get
            {
                return url;
            }
            set
            {
                if (value == string.Empty) return;
                this.url = value;
                RaisePropertyChanged(nameof(URL));
            }
        }
    }
}
